const http=require('http');
const url=require('url');
const argv=process.argv;

options=url.parse('http://localhost:8081/');
options.method='POST';

var user={
    username:argv[2],
    password:argv[3]
}
var userStr=JSON.stringify(user);
// console.log(userStr);

var request=http.request(options,(res)=>{
    
});

request.write(userStr);
request.end();